///------------------------
///说明：单表基本index页方法
///-----------------------
import { ref, nextTick } from 'vue';
export default function IndexMastControls(edit: any, list: any) {
	const showDrawer = ref(false);

	const gotoList = () => {
		showDrawer.value = true;
		nextTick(() => {
			list.value.search();
		});
	};

	const gotoEdit = (row: any) => {
		showDrawer.value = false;
		if (row) {
			edit.value.itemChange(row);
		}
	};
	return { showDrawer, gotoList, gotoEdit };
}
